<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>ExtUtils::MM_Any - Platform-agnostic MM methods - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/ExtUtils::MM_Any">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./ExtUtils::MM_Any.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/ExtUtils::MM_Any">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/ExtUtils::MM_Any">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/ExtUtils::MM_Any">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/ExtUtils::MM_Any">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/ExtUtils::MM_Any">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/ExtUtils::MM_Any">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/ExtUtils::MM_Any">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/ExtUtils::MM_Any">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/ExtUtils::MM_Any">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/ExtUtils::MM_Any">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/ExtUtils::MM_Any">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/ExtUtils::MM_Any">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/ExtUtils::MM_Any">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/ExtUtils::MM_Any">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/ExtUtils::MM_Any">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/ExtUtils::MM_Any">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/ExtUtils::MM_Any">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/ExtUtils::MM_Any">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/ExtUtils::MM_Any">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/ExtUtils::MM_Any">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/ExtUtils::MM_Any">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/ExtUtils::MM_Any">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/ExtUtils::MM_Any">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/ExtUtils::MM_Any">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/ExtUtils::MM_Any">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/ExtUtils::MM_Any">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/ExtUtils::MM_Any">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/ExtUtils::MM_Any">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/ExtUtils::MM_Any">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/ExtUtils::MM_Any">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/ExtUtils::MM_Any">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/ExtUtils::MM_Any">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/ExtUtils::MM_Any">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/ExtUtils::MM_Any">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/ExtUtils::MM_Any">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/ExtUtils::MM_Any">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/ExtUtils::MM_Any">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/ExtUtils::MM_Any">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/ExtUtils::MM_Any">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/ExtUtils::MM_Any">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/ExtUtils::MM_Any">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/ExtUtils::MM_Any">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/ExtUtils::MM_Any">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/ExtUtils::MM_Any">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/ExtUtils::MM_Any">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/ExtUtils::MM_Any">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/ExtUtils::MM_Any">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/ExtUtils::MM_Any">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/ExtUtils::MM_Any">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/ExtUtils::MM_Any">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/ExtUtils::MM_Any">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/ExtUtils::MM_Any">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/ExtUtils::MM_Any">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/ExtUtils::MM_Any">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/ExtUtils::MM_Any">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/ExtUtils::MM_Any">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/ExtUtils::MM_Any">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/ExtUtils::MM_Any">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/ExtUtils::MM_Any">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/ExtUtils::MM_Any">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/ExtUtils::MM_Any">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/ExtUtils::MM_Any">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/ExtUtils::MM_Any">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/ExtUtils::MM_Any">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/ExtUtils::MM_Any">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/ExtUtils::MM_Any">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/ExtUtils::MM_Any">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/ExtUtils::MM_Any">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/ExtUtils::MM_Any">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/ExtUtils::MM_Any">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/ExtUtils::MM_Any">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/ExtUtils::MM_Any">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/ExtUtils::MM_Any">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/ExtUtils::MM_Any">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/ExtUtils::MM_Any">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/ExtUtils::MM_Any">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/ExtUtils::MM_Any">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/ExtUtils::MM_Any">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/ExtUtils::MM_Any">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/ExtUtils::MM_Any">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./ExtUtils::MM_Any.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/ExtUtils::MM_Any">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/ExtUtils::MM_Any">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/ExtUtils::MM_Any">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/ExtUtils::MM_Any">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/ExtUtils::MM_Any">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/ExtUtils::MM_Any">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/ExtUtils::MM_Any">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/ExtUtils::MM_Any">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/ExtUtils::MM_Any">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/ExtUtils::MM_Any">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/ExtUtils::MM_Any">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/ExtUtils::MM_Any">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/ExtUtils::MM_Any">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/ExtUtils::MM_Any">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/ExtUtils::MM_Any">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/ExtUtils::MM_Any">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/ExtUtils::MM_Any">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/ExtUtils::MM_Any">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/ExtUtils::MM_Any">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/ExtUtils::MM_Any">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/ExtUtils::MM_Any">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/ExtUtils::MM_Any">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/ExtUtils::MM_Any">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/ExtUtils::MM_Any">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/ExtUtils::MM_Any">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/ExtUtils::MM_Any">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/ExtUtils::MM_Any">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/ExtUtils::MM_Any">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/ExtUtils::MM_Any">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/ExtUtils::MM_Any">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/ExtUtils::MM_Any">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/ExtUtils::MM_Any">5.35.1</a>
          <a class="dropdown-item active" href="./ExtUtils::MM_Any.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./ExtUtils::MM_Any.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="./ExtUtils::MM_Any.html">ExtUtils::MM_Any</a>
          <div id="more">
            (<a href="./ExtUtils::MM_Any.txt">source</a>,
            <a href="https://metacpan.org/pod/ExtUtils::MM_Any">CPAN</a>)
          </div>
            <div id="moduleversion">version 7.62</div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#SYNOPSIS">SYNOPSIS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#METHODS">METHODS</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#Cross-platform-helper-methods">Cross-platform helper methods</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#os_flavor-Abstract">os_flavor Abstract</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#os_flavor_is">os_flavor_is</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#can_load_xs">can_load_xs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#can_run">can_run</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#can_redirect_error">can_redirect_error</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#is_make_type">is_make_type</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#can_dep_space">can_dep_space</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#quote_dep">quote_dep</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#split_command">split_command</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#make_type">make_type</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#stashmeta">stashmeta</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#echo">echo</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#wraplist">wraplist</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#maketext_filter">maketext_filter</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#cd-Abstract">cd Abstract</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#oneliner-Abstract">oneliner Abstract</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#quote_literal-Abstract">quote_literal Abstract</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#escape_dollarsigns">escape_dollarsigns</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#escape_all_dollarsigns">escape_all_dollarsigns</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#escape_newlines-Abstract">escape_newlines Abstract</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#max_exec_len-Abstract">max_exec_len Abstract</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#make">make</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#Targets">Targets</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#all_target">all_target</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#blibdirs_target">blibdirs_target</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#clean-(o)">clean (o)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#clean_subdirs_target">clean_subdirs_target</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#dir_target">dir_target</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#distdir">distdir</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#dist_test">dist_test</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#xs_dlsyms_arg">xs_dlsyms_arg</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#xs_dlsyms_ext">xs_dlsyms_ext</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#xs_dlsyms_extra">xs_dlsyms_extra</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#xs_dlsyms_iterator">xs_dlsyms_iterator</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#xs_make_dlsyms">xs_make_dlsyms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#dynamic-(o)">dynamic (o)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#makemakerdflt_target">makemakerdflt_target</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#manifypods_target">manifypods_target</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#metafile_target">metafile_target</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#metafile_data">metafile_data</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#metafile_file">metafile_file</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#distmeta_target">distmeta_target</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#mymeta">mymeta</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#write_mymeta">write_mymeta</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#realclean-(o)">realclean (o)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#realclean_subdirs_target">realclean_subdirs_target</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#signature_target">signature_target</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#distsignature_target">distsignature_target</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#special_targets">special_targets</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#Init-methods">Init methods</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_ABSTRACT">init_ABSTRACT</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_INST">init_INST</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_INSTALL">init_INSTALL</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_INSTALL_from_PREFIX">init_INSTALL_from_PREFIX</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_from_INSTALL_BASE">init_from_INSTALL_BASE</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_VERSION-Abstract">init_VERSION Abstract</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_tools">init_tools</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_others">init_others</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#tools_other">tools_other</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_DIRFILESEP-Abstract">init_DIRFILESEP Abstract</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_linker-Abstract">init_linker Abstract</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_platform">init_platform</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#init_MAKE">init_MAKE</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#Tools">Tools</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#manifypods">manifypods</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#POD2MAN_macro">POD2MAN_macro</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#test_via_harness">test_via_harness</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#test_via_script">test_via_script</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#tool_autosplit">tool_autosplit</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#arch_check">arch_check</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#File::Spec-wrappers">File::Spec wrappers</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#catfile">catfile</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#Misc">Misc</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#find_tests">find_tests</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#find_tests_recursive">find_tests_recursive</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#find_tests_recursive_in">find_tests_recursive_in</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#extra_clean_files">extra_clean_files</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#installvars">installvars</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#libscan">libscan</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#platform_constants">platform_constants</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#post_constants-(o)">post_constants (o)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#post_initialize-(o)">post_initialize (o)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#postamble-(o)">postamble (o)</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="./ExtUtils::MM_Any.html#AUTHOR">AUTHOR</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="./ExtUtils::MM_Any.html#NAME">#</a>NAME</h1>

<p>ExtUtils::MM_Any - Platform-agnostic MM methods</p>

<h1 id="SYNOPSIS"><a class="permalink" href="./ExtUtils::MM_Any.html#SYNOPSIS">#</a>SYNOPSIS</h1>

<pre><code>FOR INTERNAL USE ONLY!

package ExtUtils::MM_SomeOS;

# Temporarily, you have to subclass both.  Put MM_Any first.
require ExtUtils::MM_Any;
require ExtUtils::MM_Unix;
@ISA = qw(ExtUtils::MM_Any ExtUtils::Unix);</code></pre>

<h1 id="DESCRIPTION"><a class="permalink" href="./ExtUtils::MM_Any.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p><b>FOR INTERNAL USE ONLY!</b></p>

<p>ExtUtils::MM_Any is a superclass for the ExtUtils::MM_* set of modules. It contains methods which are either inherently cross-platform or are written in a cross-platform manner.</p>

<p>Subclass off of ExtUtils::MM_Any <i>and</i> <a href="./ExtUtils::MM_Unix.html">ExtUtils::MM_Unix</a>. This is a temporary solution.</p>

<p><b>THIS MAY BE TEMPORARY!</b></p>

<h1 id="METHODS"><a class="permalink" href="./ExtUtils::MM_Any.html#METHODS">#</a>METHODS</h1>

<p>Any methods marked <i>Abstract</i> must be implemented by subclasses.</p>

<h2 id="Cross-platform-helper-methods"><a class="permalink" href="./ExtUtils::MM_Any.html#Cross-platform-helper-methods">#</a><a id="Cross"></a>Cross-platform helper methods</h2>

<p>These are methods which help writing cross-platform code.</p>

<h3 id="os_flavor-Abstract"><a class="permalink" href="./ExtUtils::MM_Any.html#os_flavor-Abstract">#</a><a id="os_flavor"></a>os_flavor <i>Abstract</i></h3>

<pre><code>my @os_flavor = $mm-&gt;os_flavor;</code></pre>

<p>@os_flavor is the style of operating system this is, usually corresponding to the MM_*.pm file we&#39;re using.</p>

<p>The first element of @os_flavor is the major family (ie. Unix, Windows, VMS, OS/2, etc...) and the rest are sub families.</p>

<p>Some examples:</p>

<pre><code class="plaintext">Cygwin98       (&#39;Unix&#39;,  &#39;Cygwin&#39;, &#39;Cygwin9x&#39;)
Windows        (&#39;Win32&#39;)
Win98          (&#39;Win32&#39;, &#39;Win9x&#39;)
Linux          (&#39;Unix&#39;,  &#39;Linux&#39;)
MacOS X        (&#39;Unix&#39;,  &#39;Darwin&#39;, &#39;MacOS&#39;, &#39;MacOS X&#39;)
OS/2           (&#39;OS/2&#39;)</code></pre>

<p>This is used to write code for styles of operating system. See os_flavor_is() for use.</p>

<h3 id="os_flavor_is"><a class="permalink" href="./ExtUtils::MM_Any.html#os_flavor_is">#</a>os_flavor_is</h3>

<pre><code>my $is_this_flavor = $mm-&gt;os_flavor_is($this_flavor);
my $is_this_flavor = $mm-&gt;os_flavor_is(@one_of_these_flavors);</code></pre>

<p>Checks to see if the current operating system is one of the given flavors.</p>

<p>This is useful for code like:</p>

<pre><code>if( $mm-&gt;os_flavor_is(&#39;Unix&#39;) ) {
    $out = `foo 2&gt;&amp;1`;
}
else {
    $out = `foo`;
}</code></pre>

<h3 id="can_load_xs"><a class="permalink" href="./ExtUtils::MM_Any.html#can_load_xs">#</a>can_load_xs</h3>

<pre><code>my $can_load_xs = $self-&gt;can_load_xs;</code></pre>

<p>Returns true if we have the ability to load XS.</p>

<p>This is important because miniperl, used to build XS modules in the core, can not load XS.</p>

<h3 id="can_run"><a class="permalink" href="./ExtUtils::MM_Any.html#can_run">#</a>can_run</h3>

<pre><code>use ExtUtils::MM;
my $runnable = MM-&gt;can_run($Config{make});</code></pre>

<p>If called in a scalar context it will return the full path to the binary you asked for if it was found, or <code>undef</code> if it was not.</p>

<p>If called in a list context, it will return a list of the full paths to instances of the binary where found in <code>PATH</code>, or an empty list if it was not found.</p>

<p>Copied from <a href="./IPC::Cmd.html#%24path-%3D-can_run%28-PROGRAM-%29%3B">IPC::Cmd</a>, but modified into a method (and removed <code>$INSTANCES</code> capability).</p>

<h3 id="can_redirect_error"><a class="permalink" href="./ExtUtils::MM_Any.html#can_redirect_error">#</a>can_redirect_error</h3>

<pre><code>$useredirect = MM-&gt;can_redirect_error;</code></pre>

<p>True if on an OS where qx operator (or backticks) can redirect <code>STDERR</code> onto <code>STDOUT</code>.</p>

<h3 id="is_make_type"><a class="permalink" href="./ExtUtils::MM_Any.html#is_make_type">#</a>is_make_type</h3>

<pre><code>my $is_dmake = $self-&gt;is_make_type(&#39;dmake&#39;);</code></pre>

<p>Returns true if <code>$self-&gt;make</code> is the given type; possibilities are:</p>

<pre><code class="plaintext">gmake    GNU make
dmake
nmake
bsdmake  BSD pmake-derived</code></pre>

<h3 id="can_dep_space"><a class="permalink" href="./ExtUtils::MM_Any.html#can_dep_space">#</a>can_dep_space</h3>

<pre><code>my $can_dep_space = $self-&gt;can_dep_space;</code></pre>

<p>Returns true if <code>make</code> can handle (probably by quoting) dependencies that contain a space. Currently known true for GNU make, false for BSD pmake derivative.</p>

<h3 id="quote_dep"><a class="permalink" href="./ExtUtils::MM_Any.html#quote_dep">#</a>quote_dep</h3>

<pre><code>$text = $mm-&gt;quote_dep($text);</code></pre>

<p>Method that protects Makefile single-value constants (mainly filenames), so that make will still treat them as single values even if they inconveniently have spaces in. If the make program being used cannot achieve such protection and the given text would need it, throws an exception.</p>

<h3 id="split_command"><a class="permalink" href="./ExtUtils::MM_Any.html#split_command">#</a>split_command</h3>

<pre><code>my @cmds = $MM-&gt;split_command($cmd, @args);</code></pre>

<p>Most OS have a maximum command length they can execute at once. Large modules can easily generate commands well past that limit. Its necessary to split long commands up into a series of shorter commands.</p>

<p><code>split_command</code> will return a series of @cmds each processing part of the args. Collectively they will process all the arguments. Each individual line in @cmds will not be longer than the $self-&gt;max_exec_len being careful to take into account macro expansion.</p>

<p>$cmd should include any switches and repeated initial arguments.</p>

<p>If no @args are given, no @cmds will be returned.</p>

<p>Pairs of arguments will always be preserved in a single command, this is a heuristic for things like pm_to_blib and pod2man which work on pairs of arguments. This makes things like this safe:</p>

<pre><code>$self-&gt;split_command($cmd, %pod2man);</code></pre>

<h3 id="make_type"><a class="permalink" href="./ExtUtils::MM_Any.html#make_type">#</a>make_type</h3>

<p>Returns a suitable string describing the type of makefile being written.</p>

<h3 id="stashmeta"><a class="permalink" href="./ExtUtils::MM_Any.html#stashmeta">#</a>stashmeta</h3>

<pre><code>my @recipelines = $MM-&gt;stashmeta($text, $file);</code></pre>

<p>Generates a set of <code>@recipelines</code> which will result in the literal <code>$text</code> ending up in literal <code>$file</code> when the recipe is executed. Call it once, with all the text you want in <code>$file</code>. Make macros will not be expanded, so the locations will be fixed at configure-time, not at build-time.</p>

<h3 id="echo"><a class="permalink" href="./ExtUtils::MM_Any.html#echo">#</a>echo</h3>

<pre><code>my @commands = $MM-&gt;echo($text);
my @commands = $MM-&gt;echo($text, $file);
my @commands = $MM-&gt;echo($text, $file, \%opts);</code></pre>

<p>Generates a set of @commands which print the $text to a $file.</p>

<p>If $file is not given, output goes to STDOUT.</p>

<p>If $opts{append} is true the $file will be appended to rather than overwritten. Default is to overwrite.</p>

<p>If $opts{allow_variables} is true, make variables of the form <code>$(...)</code> will not be escaped. Other <code>$</code> will. Default is to escape all <code>$</code>.</p>

<p>Example of use:</p>

<pre><code>my $make = join &#39;&#39;, map &quot;\t$_\n&quot;, $MM-&gt;echo($text, $file);</code></pre>

<h3 id="wraplist"><a class="permalink" href="./ExtUtils::MM_Any.html#wraplist">#</a>wraplist</h3>

<pre><code>my $args = $mm-&gt;wraplist(@list);</code></pre>

<p>Takes an array of items and turns them into a well-formatted list of arguments. In most cases this is simply something like:</p>

<pre><code class="plaintext">FOO \
BAR \
BAZ</code></pre>

<h3 id="maketext_filter"><a class="permalink" href="./ExtUtils::MM_Any.html#maketext_filter">#</a>maketext_filter</h3>

<pre><code>my $filter_make_text = $mm-&gt;maketext_filter($make_text);</code></pre>

<p>The text of the Makefile is run through this method before writing to disk. It allows systems a chance to make portability fixes to the Makefile.</p>

<p>By default it does nothing.</p>

<p>This method is protected and not intended to be called outside of MakeMaker.</p>

<h3 id="cd-Abstract"><a class="permalink" href="./ExtUtils::MM_Any.html#cd-Abstract">#</a><a id="cd"></a>cd <i>Abstract</i></h3>

<pre><code>my $subdir_cmd = $MM-&gt;cd($subdir, @cmds);</code></pre>

<p>This will generate a make fragment which runs the @cmds in the given $dir. The rough equivalent to this, except cross platform.</p>

<pre><code>cd $subdir &amp;&amp; $cmd</code></pre>

<p>Currently $dir can only go down one level. &quot;foo&quot; is fine. &quot;foo/bar&quot; is not. &quot;../foo&quot; is right out.</p>

<p>The resulting $subdir_cmd has no leading tab nor trailing newline. This makes it easier to embed in a make string. For example.</p>

<pre><code>    my $make = sprintf &lt;&lt;&#39;CODE&#39;, $subdir_cmd;
foo :
    $(ECHO) what
    %s
    $(ECHO) mouche
CODE</code></pre>

<h3 id="oneliner-Abstract"><a class="permalink" href="./ExtUtils::MM_Any.html#oneliner-Abstract">#</a><a id="oneliner"></a>oneliner <i>Abstract</i></h3>

<pre><code>my $oneliner = $MM-&gt;oneliner($perl_code);
my $oneliner = $MM-&gt;oneliner($perl_code, \@switches);</code></pre>

<p>This will generate a perl one-liner safe for the particular platform you&#39;re on based on the given $perl_code and @switches (a -e is assumed) suitable for using in a make target. It will use the proper shell quoting and escapes.</p>

<p>$(PERLRUN) will be used as perl.</p>

<p>Any newlines in $perl_code will be escaped. Leading and trailing newlines will be stripped. Makes this idiom much easier:</p>

<pre><code>my $code = $MM-&gt;oneliner(&lt;&lt;&#39;CODE&#39;, [...switches...]);
some code here
another line here
CODE</code></pre>

<p>Usage might be something like:</p>

<pre><code># an echo emulation
$oneliner = $MM-&gt;oneliner(&#39;print &quot;Foo\n&quot;&#39;);
$make = &#39;$oneliner &gt; somefile&#39;;</code></pre>

<p>Dollar signs in the $perl_code will be protected from make using the <code>quote_literal</code> method, unless they are recognised as being a make variable, <code>$(varname)</code>, in which case they will be left for make to expand. Remember to quote make macros else it might be used as a bareword. For example:</p>

<pre><code># Assign the value of the $(VERSION_FROM) make macro to $vf.
$oneliner = $MM-&gt;oneliner(&#39;$vf = &quot;$(VERSION_FROM)&quot;&#39;);</code></pre>

<p>Its currently very simple and may be expanded sometime in the figure to include more flexible code and switches.</p>

<h3 id="quote_literal-Abstract"><a class="permalink" href="./ExtUtils::MM_Any.html#quote_literal-Abstract">#</a><a id="quote_literal"></a>quote_literal <i>Abstract</i></h3>

<pre><code>my $safe_text = $MM-&gt;quote_literal($text);
my $safe_text = $MM-&gt;quote_literal($text, \%options);</code></pre>

<p>This will quote $text so it is interpreted literally in the shell.</p>

<p>For example, on Unix this would escape any single-quotes in $text and put single-quotes around the whole thing.</p>

<p>If $options{allow_variables} is true it will leave <code>&#39;$(FOO)&#39;</code> make variables untouched. If false they will be escaped like any other <code>$</code>. Defaults to true.</p>

<h3 id="escape_dollarsigns"><a class="permalink" href="./ExtUtils::MM_Any.html#escape_dollarsigns">#</a>escape_dollarsigns</h3>

<pre><code>my $escaped_text = $MM-&gt;escape_dollarsigns($text);</code></pre>

<p>Escapes stray <code>$</code> so they are not interpreted as make variables.</p>

<p>It lets by <code>$(...)</code>.</p>

<h3 id="escape_all_dollarsigns"><a class="permalink" href="./ExtUtils::MM_Any.html#escape_all_dollarsigns">#</a>escape_all_dollarsigns</h3>

<pre><code>my $escaped_text = $MM-&gt;escape_all_dollarsigns($text);</code></pre>

<p>Escapes all <code>$</code> so they are not interpreted as make variables.</p>

<h3 id="escape_newlines-Abstract"><a class="permalink" href="./ExtUtils::MM_Any.html#escape_newlines-Abstract">#</a><a id="escape_newlines"></a>escape_newlines <i>Abstract</i></h3>

<pre><code>my $escaped_text = $MM-&gt;escape_newlines($text);</code></pre>

<p>Shell escapes newlines in $text.</p>

<h3 id="max_exec_len-Abstract"><a class="permalink" href="./ExtUtils::MM_Any.html#max_exec_len-Abstract">#</a><a id="max_exec_len"></a>max_exec_len <i>Abstract</i></h3>

<pre><code>my $max_exec_len = $MM-&gt;max_exec_len;</code></pre>

<p>Calculates the maximum command size the OS can exec. Effectively, this is the max size of a shell command line.</p>

<h3 id="make"><a class="permalink" href="./ExtUtils::MM_Any.html#make">#</a>make</h3>

<pre><code>my $make = $MM-&gt;make;</code></pre>

<p>Returns the make variant we&#39;re generating the Makefile for. This attempts to do some normalization on the information from %Config or the user.</p>

<h2 id="Targets"><a class="permalink" href="./ExtUtils::MM_Any.html#Targets">#</a>Targets</h2>

<p>These are methods which produce make targets.</p>

<h3 id="all_target"><a class="permalink" href="./ExtUtils::MM_Any.html#all_target">#</a>all_target</h3>

<p>Generate the default target &#39;all&#39;.</p>

<h3 id="blibdirs_target"><a class="permalink" href="./ExtUtils::MM_Any.html#blibdirs_target">#</a>blibdirs_target</h3>

<pre><code>my $make_frag = $mm-&gt;blibdirs_target;</code></pre>

<p>Creates the blibdirs target which creates all the directories we use in blib/.</p>

<p>The blibdirs.ts target is deprecated. Depend on blibdirs instead.</p>

<h3 id="clean-(o)"><a class="permalink" href="./ExtUtils::MM_Any.html#clean-(o)">#</a><a id="clean"></a><a id="clean-o"></a>clean (o)</h3>

<p>Defines the clean target.</p>

<h3 id="clean_subdirs_target"><a class="permalink" href="./ExtUtils::MM_Any.html#clean_subdirs_target">#</a>clean_subdirs_target</h3>

<pre><code>my $make_frag = $MM-&gt;clean_subdirs_target;</code></pre>

<p>Returns the clean_subdirs target. This is used by the clean target to call clean on any subdirectories which contain Makefiles.</p>

<h3 id="dir_target"><a class="permalink" href="./ExtUtils::MM_Any.html#dir_target">#</a>dir_target</h3>

<pre><code>my $make_frag = $mm-&gt;dir_target(@directories);</code></pre>

<p>Generates targets to create the specified directories and set its permission to PERM_DIR.</p>

<p>Because depending on a directory to just ensure it exists doesn&#39;t work too well (the modified time changes too often) dir_target() creates a .exists file in the created directory. It is this you should depend on. For portability purposes you should use the $(DIRFILESEP) macro rather than a &#39;/&#39; to separate the directory from the file.</p>

<pre><code class="plaintext">yourdirectory$(DIRFILESEP).exists</code></pre>

<h3 id="distdir"><a class="permalink" href="./ExtUtils::MM_Any.html#distdir">#</a>distdir</h3>

<p>Defines the scratch directory target that will hold the distribution before tar-ing (or shar-ing).</p>

<h3 id="dist_test"><a class="permalink" href="./ExtUtils::MM_Any.html#dist_test">#</a>dist_test</h3>

<p>Defines a target that produces the distribution in the scratch directory, and runs &#39;perl Makefile.PL; make ;make test&#39; in that subdirectory.</p>

<h3 id="xs_dlsyms_arg"><a class="permalink" href="./ExtUtils::MM_Any.html#xs_dlsyms_arg">#</a>xs_dlsyms_arg</h3>

<p>Returns command-line arg(s) to linker for file listing dlsyms to export. Defaults to returning empty string, can be overridden by e.g. AIX.</p>

<h3 id="xs_dlsyms_ext"><a class="permalink" href="./ExtUtils::MM_Any.html#xs_dlsyms_ext">#</a>xs_dlsyms_ext</h3>

<p>Returns file-extension for <code>xs_make_dlsyms</code> method&#39;s output file, including any &quot;.&quot; character.</p>

<h3 id="xs_dlsyms_extra"><a class="permalink" href="./ExtUtils::MM_Any.html#xs_dlsyms_extra">#</a>xs_dlsyms_extra</h3>

<p>Returns any extra text to be prepended to the <code>$extra</code> argument of <code>xs_make_dlsyms</code>.</p>

<h3 id="xs_dlsyms_iterator"><a class="permalink" href="./ExtUtils::MM_Any.html#xs_dlsyms_iterator">#</a>xs_dlsyms_iterator</h3>

<p>Iterates over necessary shared objects, calling <code>xs_make_dlsyms</code> method for each with appropriate arguments.</p>

<h3 id="xs_make_dlsyms"><a class="permalink" href="./ExtUtils::MM_Any.html#xs_make_dlsyms">#</a>xs_make_dlsyms</h3>

<pre><code>$self-&gt;xs_make_dlsyms(
    \%attribs, # hashref from %attribs in caller
    &quot;$self-&gt;{BASEEXT}.def&quot;, # output file for Makefile target
    &#39;Makefile.PL&#39;, # dependency
    $self-&gt;{NAME}, # shared object&#39;s &quot;name&quot;
    $self-&gt;{DLBASE}, # last ::-separated part of name
    $attribs{DL_FUNCS} || $self-&gt;{DL_FUNCS} || {}, # various params
    $attribs{FUNCLIST} || $self-&gt;{FUNCLIST} || [],
    $attribs{IMPORTS} || $self-&gt;{IMPORTS} || {},
    $attribs{DL_VARS} || $self-&gt;{DL_VARS} || [],
    # optional extra param that will be added as param to Mksymlists
);</code></pre>

<p>Utility method that returns Makefile snippet to call <code>Mksymlists</code>.</p>

<h3 id="dynamic-(o)"><a class="permalink" href="./ExtUtils::MM_Any.html#dynamic-(o)">#</a><a id="dynamic"></a><a id="dynamic-o"></a>dynamic (o)</h3>

<p>Defines the dynamic target.</p>

<h3 id="makemakerdflt_target"><a class="permalink" href="./ExtUtils::MM_Any.html#makemakerdflt_target">#</a>makemakerdflt_target</h3>

<pre><code>my $make_frag = $mm-&gt;makemakerdflt_target</code></pre>

<p>Returns a make fragment with the makemakerdeflt_target specified. This target is the first target in the Makefile, is the default target and simply points off to &#39;all&#39; just in case any make variant gets confused or something gets snuck in before the real &#39;all&#39; target.</p>

<h3 id="manifypods_target"><a class="permalink" href="./ExtUtils::MM_Any.html#manifypods_target">#</a>manifypods_target</h3>

<pre><code>my $manifypods_target = $self-&gt;manifypods_target;</code></pre>

<p>Generates the manifypods target. This target generates man pages from all POD files in MAN1PODS and MAN3PODS.</p>

<h3 id="metafile_target"><a class="permalink" href="./ExtUtils::MM_Any.html#metafile_target">#</a>metafile_target</h3>

<pre><code>my $target = $mm-&gt;metafile_target;</code></pre>

<p>Generate the metafile target.</p>

<p>Writes the file META.yml (YAML encoded meta-data) and META.json (JSON encoded meta-data) about the module in the distdir. The format follows Module::Build&#39;s as closely as possible.</p>

<h3 id="metafile_data"><a class="permalink" href="./ExtUtils::MM_Any.html#metafile_data">#</a>metafile_data</h3>

<pre><code>my $metadata_hashref = $mm-&gt;metafile_data(\%meta_add, \%meta_merge);</code></pre>

<p>Returns the data which MakeMaker turns into the META.yml file and the META.json file. It is always in version 2.0 of the format.</p>

<p>Values of %meta_add will overwrite any existing metadata in those keys. %meta_merge will be merged with them.</p>

<h3 id="metafile_file"><a class="permalink" href="./ExtUtils::MM_Any.html#metafile_file">#</a>metafile_file</h3>

<pre><code>my $meta_yml = $mm-&gt;metafile_file(@metadata_pairs);</code></pre>

<p>Turns the @metadata_pairs into YAML.</p>

<p>This method does not implement a complete YAML dumper, being limited to dump a hash with values which are strings, undef&#39;s or nested hashes and arrays of strings. No quoting/escaping is done.</p>

<h3 id="distmeta_target"><a class="permalink" href="./ExtUtils::MM_Any.html#distmeta_target">#</a>distmeta_target</h3>

<pre><code>my $make_frag = $mm-&gt;distmeta_target;</code></pre>

<p>Generates the distmeta target to add META.yml and META.json to the MANIFEST in the distdir.</p>

<h3 id="mymeta"><a class="permalink" href="./ExtUtils::MM_Any.html#mymeta">#</a>mymeta</h3>

<pre><code>my $mymeta = $mm-&gt;mymeta;</code></pre>

<p>Generate MYMETA information as a hash either from an existing CPAN Meta file (META.json or META.yml) or from internal data.</p>

<h3 id="write_mymeta"><a class="permalink" href="./ExtUtils::MM_Any.html#write_mymeta">#</a>write_mymeta</h3>

<pre><code>$self-&gt;write_mymeta( $mymeta );</code></pre>

<p>Write MYMETA information to MYMETA.json and MYMETA.yml.</p>

<h3 id="realclean-(o)"><a class="permalink" href="./ExtUtils::MM_Any.html#realclean-(o)">#</a><a id="realclean"></a><a id="realclean-o"></a>realclean (o)</h3>

<p>Defines the realclean target.</p>

<h3 id="realclean_subdirs_target"><a class="permalink" href="./ExtUtils::MM_Any.html#realclean_subdirs_target">#</a>realclean_subdirs_target</h3>

<pre><code>my $make_frag = $MM-&gt;realclean_subdirs_target;</code></pre>

<p>Returns the realclean_subdirs target. This is used by the realclean target to call realclean on any subdirectories which contain Makefiles.</p>

<h3 id="signature_target"><a class="permalink" href="./ExtUtils::MM_Any.html#signature_target">#</a>signature_target</h3>

<pre><code>my $target = $mm-&gt;signature_target;</code></pre>

<p>Generate the signature target.</p>

<p>Writes the file SIGNATURE with &quot;cpansign -s&quot;.</p>

<h3 id="distsignature_target"><a class="permalink" href="./ExtUtils::MM_Any.html#distsignature_target">#</a>distsignature_target</h3>

<pre><code>my $make_frag = $mm-&gt;distsignature_target;</code></pre>

<p>Generates the distsignature target to add SIGNATURE to the MANIFEST in the distdir.</p>

<h3 id="special_targets"><a class="permalink" href="./ExtUtils::MM_Any.html#special_targets">#</a>special_targets</h3>

<pre><code>my $make_frag = $mm-&gt;special_targets</code></pre>

<p>Returns a make fragment containing any targets which have special meaning to make. For example, .SUFFIXES and .PHONY.</p>

<h2 id="Init-methods"><a class="permalink" href="./ExtUtils::MM_Any.html#Init-methods">#</a><a id="Init"></a>Init methods</h2>

<p>Methods which help initialize the MakeMaker object and macros.</p>

<h3 id="init_ABSTRACT"><a class="permalink" href="./ExtUtils::MM_Any.html#init_ABSTRACT">#</a>init_ABSTRACT</h3>

<pre><code>$mm-&gt;init_ABSTRACT</code></pre>

<h3 id="init_INST"><a class="permalink" href="./ExtUtils::MM_Any.html#init_INST">#</a>init_INST</h3>

<pre><code>$mm-&gt;init_INST;</code></pre>

<p>Called by init_main. Sets up all INST_* variables except those related to XS code. Those are handled in init_xs.</p>

<h3 id="init_INSTALL"><a class="permalink" href="./ExtUtils::MM_Any.html#init_INSTALL">#</a>init_INSTALL</h3>

<pre><code>$mm-&gt;init_INSTALL;</code></pre>

<p>Called by init_main. Sets up all INSTALL_* variables (except INSTALLDIRS) and *PREFIX.</p>

<h3 id="init_INSTALL_from_PREFIX"><a class="permalink" href="./ExtUtils::MM_Any.html#init_INSTALL_from_PREFIX">#</a>init_INSTALL_from_PREFIX</h3>

<pre><code>$mm-&gt;init_INSTALL_from_PREFIX;</code></pre>

<h3 id="init_from_INSTALL_BASE"><a class="permalink" href="./ExtUtils::MM_Any.html#init_from_INSTALL_BASE">#</a>init_from_INSTALL_BASE</h3>

<pre><code>$mm-&gt;init_from_INSTALL_BASE</code></pre>

<h3 id="init_VERSION-Abstract"><a class="permalink" href="./ExtUtils::MM_Any.html#init_VERSION-Abstract">#</a><a id="init_VERSION"></a>init_VERSION <i>Abstract</i></h3>

<pre><code>$mm-&gt;init_VERSION</code></pre>

<p>Initialize macros representing versions of MakeMaker and other tools</p>

<p>MAKEMAKER: path to the MakeMaker module.</p>

<p>MM_VERSION: ExtUtils::MakeMaker Version</p>

<p>MM_REVISION: ExtUtils::MakeMaker version control revision (for backwards compat)</p>

<p>VERSION: version of your module</p>

<p>VERSION_MACRO: which macro represents the version (usually &#39;VERSION&#39;)</p>

<p>VERSION_SYM: like version but safe for use as an RCS revision number</p>

<p>DEFINE_VERSION: -D line to set the module version when compiling</p>

<p>XS_VERSION: version in your .xs file. Defaults to $(VERSION)</p>

<p>XS_VERSION_MACRO: which macro represents the XS version.</p>

<p>XS_DEFINE_VERSION: -D line to set the xs version when compiling.</p>

<p>Called by init_main.</p>

<h3 id="init_tools"><a class="permalink" href="./ExtUtils::MM_Any.html#init_tools">#</a>init_tools</h3>

<pre><code>$MM-&gt;init_tools();</code></pre>

<p>Initializes the simple macro definitions used by tools_other() and places them in the $MM object. These use conservative cross platform versions and should be overridden with platform specific versions for performance.</p>

<p>Defines at least these macros.</p>

<pre><code class="plaintext">Macro             Description

NOOP              Do nothing
NOECHO            Tell make not to display the command itself

SHELL             Program used to run shell commands

ECHO              Print text adding a newline on the end
RM_F              Remove a file
RM_RF             Remove a directory
TOUCH             Update a file&#39;s timestamp
TEST_F            Test for a file&#39;s existence
TEST_S            Test the size of a file
CP                Copy a file
CP_NONEMPTY       Copy a file if it is not empty
MV                Move a file
CHMOD             Change permissions on a file
FALSE             Exit with non-zero
TRUE              Exit with zero

UMASK_NULL        Nullify umask
DEV_NULL          Suppress all command output</code></pre>

<h3 id="init_others"><a class="permalink" href="./ExtUtils::MM_Any.html#init_others">#</a>init_others</h3>

<pre><code>$MM-&gt;init_others();</code></pre>

<p>Initializes the macro definitions having to do with compiling and linking used by tools_other() and places them in the $MM object.</p>

<p>If there is no description, its the same as the parameter to WriteMakefile() documented in <a href="./ExtUtils::MakeMaker.html">ExtUtils::MakeMaker</a>.</p>

<h3 id="tools_other"><a class="permalink" href="./ExtUtils::MM_Any.html#tools_other">#</a>tools_other</h3>

<pre><code>my $make_frag = $MM-&gt;tools_other;</code></pre>

<p>Returns a make fragment containing definitions for the macros init_others() initializes.</p>

<h3 id="init_DIRFILESEP-Abstract"><a class="permalink" href="./ExtUtils::MM_Any.html#init_DIRFILESEP-Abstract">#</a><a id="init_DIRFILESEP"></a>init_DIRFILESEP <i>Abstract</i></h3>

<pre><code>$MM-&gt;init_DIRFILESEP;
my $dirfilesep = $MM-&gt;{DIRFILESEP};</code></pre>

<p>Initializes the DIRFILESEP macro which is the separator between the directory and filename in a filepath. ie. / on Unix, \ on Win32 and nothing on VMS.</p>

<p>For example:</p>

<pre><code class="plaintext"># instead of $(INST_ARCHAUTODIR)/extralibs.ld
$(INST_ARCHAUTODIR)$(DIRFILESEP)extralibs.ld</code></pre>

<p>Something of a hack but it prevents a lot of code duplication between MM_* variants.</p>

<p>Do not use this as a separator between directories. Some operating systems use different separators between subdirectories as between directories and filenames (for example: VOLUME:[dir1.dir2]file on VMS).</p>

<h3 id="init_linker-Abstract"><a class="permalink" href="./ExtUtils::MM_Any.html#init_linker-Abstract">#</a><a id="init_linker"></a>init_linker <i>Abstract</i></h3>

<pre><code>$mm-&gt;init_linker;</code></pre>

<p>Initialize macros which have to do with linking.</p>

<p>PERL_ARCHIVE: path to libperl.a equivalent to be linked to dynamic extensions.</p>

<p>PERL_ARCHIVE_AFTER: path to a library which should be put on the linker command line <i>after</i> the external libraries to be linked to dynamic extensions. This may be needed if the linker is one-pass, and Perl includes some overrides for C RTL functions, such as malloc().</p>

<p>EXPORT_LIST: name of a file that is passed to linker to define symbols to be exported.</p>

<p>Some OSes do not need these in which case leave it blank.</p>

<h3 id="init_platform"><a class="permalink" href="./ExtUtils::MM_Any.html#init_platform">#</a>init_platform</h3>

<pre><code>$mm-&gt;init_platform</code></pre>

<p>Initialize any macros which are for platform specific use only.</p>

<p>A typical one is the version number of your OS specific module. (ie. MM_Unix_VERSION or MM_VMS_VERSION).</p>

<h3 id="init_MAKE"><a class="permalink" href="./ExtUtils::MM_Any.html#init_MAKE">#</a>init_MAKE</h3>

<pre><code>$mm-&gt;init_MAKE</code></pre>

<p>Initialize MAKE from either a MAKE environment variable or $Config{make}.</p>

<h2 id="Tools"><a class="permalink" href="./ExtUtils::MM_Any.html#Tools">#</a>Tools</h2>

<p>A grab bag of methods to generate specific macros and commands.</p>

<h3 id="manifypods"><a class="permalink" href="./ExtUtils::MM_Any.html#manifypods">#</a>manifypods</h3>

<p>Defines targets and routines to translate the pods into manpages and put them into the INST_* directories.</p>

<h3 id="POD2MAN_macro"><a class="permalink" href="./ExtUtils::MM_Any.html#POD2MAN_macro">#</a>POD2MAN_macro</h3>

<pre><code>my $pod2man_macro = $self-&gt;POD2MAN_macro</code></pre>

<p>Returns a definition for the POD2MAN macro. This is a program which emulates the pod2man utility. You can add more switches to the command by simply appending them on the macro.</p>

<p>Typical usage:</p>

<pre><code class="plaintext">$(POD2MAN) --section=3 --perm_rw=$(PERM_RW) podfile1 man_page1 ...</code></pre>

<h3 id="test_via_harness"><a class="permalink" href="./ExtUtils::MM_Any.html#test_via_harness">#</a>test_via_harness</h3>

<pre><code>my $command = $mm-&gt;test_via_harness($perl, $tests);</code></pre>

<p>Returns a $command line which runs the given set of $tests with Test::Harness and the given $perl.</p>

<p>Used on the t/*.t files.</p>

<h3 id="test_via_script"><a class="permalink" href="./ExtUtils::MM_Any.html#test_via_script">#</a>test_via_script</h3>

<pre><code>my $command = $mm-&gt;test_via_script($perl, $script);</code></pre>

<p>Returns a $command line which just runs a single test without Test::Harness. No checks are done on the results, they&#39;re just printed.</p>

<p>Used for test.pl, since they don&#39;t always follow Test::Harness formatting.</p>

<h3 id="tool_autosplit"><a class="permalink" href="./ExtUtils::MM_Any.html#tool_autosplit">#</a>tool_autosplit</h3>

<p>Defines a simple perl call that runs autosplit. May be deprecated by pm_to_blib soon.</p>

<h3 id="arch_check"><a class="permalink" href="./ExtUtils::MM_Any.html#arch_check">#</a>arch_check</h3>

<pre><code>my $arch_ok = $mm-&gt;arch_check(
    $INC{&quot;Config.pm&quot;},
    File::Spec-&gt;catfile($Config{archlibexp}, &quot;Config.pm&quot;)
);</code></pre>

<p>A sanity check that what Perl thinks the architecture is and what Config thinks the architecture is are the same. If they&#39;re not it will return false and show a diagnostic message.</p>

<p>When building Perl it will always return true, as nothing is installed yet.</p>

<p>The interface is a bit odd because this is the result of a quick refactoring. Don&#39;t rely on it.</p>

<h2 id="File::Spec-wrappers"><a class="permalink" href="./ExtUtils::MM_Any.html#File::Spec-wrappers">#</a><a id="File"></a>File::Spec wrappers</h2>

<p>ExtUtils::MM_Any is a subclass of <a href="./File::Spec.html">File::Spec</a>. The methods noted here override File::Spec.</p>

<h3 id="catfile"><a class="permalink" href="./ExtUtils::MM_Any.html#catfile">#</a>catfile</h3>

<p>File::Spec &lt;= 0.83 has a bug where the file part of catfile is not canonicalized. This override fixes that bug.</p>

<h2 id="Misc"><a class="permalink" href="./ExtUtils::MM_Any.html#Misc">#</a>Misc</h2>

<p>Methods I can&#39;t really figure out where they should go yet.</p>

<h3 id="find_tests"><a class="permalink" href="./ExtUtils::MM_Any.html#find_tests">#</a>find_tests</h3>

<pre><code>my $test = $mm-&gt;find_tests;</code></pre>

<p>Returns a string suitable for feeding to the shell to return all tests in t/*.t.</p>

<h3 id="find_tests_recursive"><a class="permalink" href="./ExtUtils::MM_Any.html#find_tests_recursive">#</a>find_tests_recursive</h3>

<pre><code>my $tests = $mm-&gt;find_tests_recursive;</code></pre>

<p>Returns a string suitable for feeding to the shell to return all tests in t/ but recursively. Equivalent to</p>

<pre><code>my $tests = $mm-&gt;find_tests_recursive_in(&#39;t&#39;);</code></pre>

<h3 id="find_tests_recursive_in"><a class="permalink" href="./ExtUtils::MM_Any.html#find_tests_recursive_in">#</a>find_tests_recursive_in</h3>

<pre><code>my $tests = $mm-&gt;find_tests_recursive_in($dir);</code></pre>

<p>Returns a string suitable for feeding to the shell to return all tests in $dir recursively.</p>

<h3 id="extra_clean_files"><a class="permalink" href="./ExtUtils::MM_Any.html#extra_clean_files">#</a>extra_clean_files</h3>

<pre><code>my @files_to_clean = $MM-&gt;extra_clean_files;</code></pre>

<p>Returns a list of OS specific files to be removed in the clean target in addition to the usual set.</p>

<h3 id="installvars"><a class="permalink" href="./ExtUtils::MM_Any.html#installvars">#</a>installvars</h3>

<pre><code>my @installvars = $mm-&gt;installvars;</code></pre>

<p>A list of all the INSTALL* variables without the INSTALL prefix. Useful for iteration or building related variable sets.</p>

<h3 id="libscan"><a class="permalink" href="./ExtUtils::MM_Any.html#libscan">#</a>libscan</h3>

<pre><code>my $wanted = $self-&gt;libscan($path);</code></pre>

<p>Takes a path to a file or dir and returns an empty string if we don&#39;t want to include this file in the library. Otherwise it returns the the $path unchanged.</p>

<p>Mainly used to exclude version control administrative directories and base-level <i>README.pod</i> from installation.</p>

<h3 id="platform_constants"><a class="permalink" href="./ExtUtils::MM_Any.html#platform_constants">#</a>platform_constants</h3>

<pre><code>my $make_frag = $mm-&gt;platform_constants</code></pre>

<p>Returns a make fragment defining all the macros initialized in init_platform() rather than put them in constants().</p>

<h3 id="post_constants-(o)"><a class="permalink" href="./ExtUtils::MM_Any.html#post_constants-(o)">#</a><a id="post_constants"></a><a id="post_constants-o"></a>post_constants (o)</h3>

<p>Returns an empty string per default. Dedicated to overrides from within Makefile.PL after all constants have been defined.</p>

<h3 id="post_initialize-(o)"><a class="permalink" href="./ExtUtils::MM_Any.html#post_initialize-(o)">#</a><a id="post_initialize"></a><a id="post_initialize-o"></a>post_initialize (o)</h3>

<p>Returns an empty string per default. Used in Makefile.PLs to add some chunk of text to the Makefile after the object is initialized.</p>

<h3 id="postamble-(o)"><a class="permalink" href="./ExtUtils::MM_Any.html#postamble-(o)">#</a><a id="postamble"></a><a id="postamble-o"></a>postamble (o)</h3>

<p>Returns an empty string. Can be used in Makefile.PLs to write some text to the Makefile at the end.</p>

<h1 id="AUTHOR"><a class="permalink" href="./ExtUtils::MM_Any.html#AUTHOR">#</a>AUTHOR</h1>

<p>Michael G Schwern &lt;schwern@pobox.com&gt; and the denizens of makemaker@perl.org with code from ExtUtils::MM_Unix and ExtUtils::MM_Win32.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
